home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime for java / custommedia / readme.txt < prev    next >
Encoding:
Text File  |  2000-06-23  |  3.1 KB  |  58 lines

  1. =============================================================================
  2. QuickTime for Java SDK                              Updated: 30 November 1998
  3.  
  4. Read Me Notes to "Custom Media" Demo and Sample Code
  5.  
  6. =============================================================================
  7. This demo program shows how to subclass the quicktime.std.movies.media.Media class to support any Custom media types. 
  8.  
  9. =============================================================================
  10. The minimum runtime requirements for this Sample Code are:
  11.  
  12. - Common
  13.     - Sun Compliant Java Runtime Environment 1.1
  14.     - QuickTime 3 
  15.     - QTJava.zip
  16.  
  17. - MacOS:
  18.     - System 8 or later
  19.     - Macintosh Runtime for Java (MRJ) 2.1
  20.  
  21. - Windows 95, 98, or NT::
  22.     - JRE/JDK from Sun Microsystems, Inc. recommended
  23.  
  24. =============================================================================
  25. Media requirements for this Sample Code are:
  26.  
  27. A QuickTimeVR Panoramic movie of the user's choice
  28.  
  29. =============================================================================
  30. Notes & Comments
  31.  
  32. The user is prompted to select a QTVR Panoramic movie file.
  33.  
  34. It will print out the media object and the SampleDescription of all of the tracks that are found in the opened movie.
  35.  
  36. The TestVRMedia.zip file also contains the VRMedia class which is the custom Media subclass. It supplies an Integer constructor - the application should not call this directly - it is called by the Media factory method based on the media type and the vrMediaOSType that is registered with the Media factory.
  37.  
  38. The factory methods create Media subclasses based on the media type. If a match is not found for QuickTime's default media types a search is done to see if the application has itself registered knowledge of custom or application specific media types. If a match is still not found the factory will return a GenericMedia object.
  39.  
  40. Standard Media calls can still be done on a GenericMedia class - it is only if the application requires specific functionality and support for specific media or media handlers that custom media classes have to be written. This mechanism can be used to integrate those custom classes with the existing framework.
  41.  
  42. The registerMediaType static call could easily be done in the static initializer of the VRMedia class - it is left as a specific call for the purpose of illustrating the mechanism that is being used.
  43.  
  44. =============================================================================
  45. General Comments
  46.  
  47. - QTSession.open and close:
  48.  
  49. A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used.
  50.  
  51. When the user closes the window the program will quit, first calling QTSession.close to terminate QuickTime. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly.
  52.  
  53.  
  54. =============================================================================
  55.  
  56. QuickTime and QuickTime for Java are trademarks of Apple Computer, Inc.
  57. (c) 1998 Apple Computer Inc. All rights reserved.
  58.